package com.sakura.model;/**
 * Created by apple on 2019/3/25.
 */

/**
 * @author jixd
 * @Description TODO
 * @Date 2019/3/25 2:49 PM
 * @Version 1.0
 **/
public class ColumnInfo {
    //字段名
    private String name;
    //字段类型
    private String dataType;
    //0普通键 主键 外键
    private int keyType;

    public ColumnInfo(String name, String dataType, int keyType) {
        this.name = name;
        this.dataType = dataType;
        this.keyType = keyType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public int getKeyType() {
        return keyType;
    }

    public void setKeyType(int keyType) {
        this.keyType = keyType;
    }

    @Override
    public String toString() {
        return "ColumnInfo{" +
                "name='" + name + '\'' +
                ", dataType='" + dataType + '\'' +
                ", keyType=" + keyType +
                '}';
    }
}
